<html>

<head>
<title>SQL Relay - Getting Started With Oracle</title>
<link rel="stylesheet" href="../../../../../css/styles.css">
</head>

<body>

<span class="heading1">Configure the Kernel</span><br>

<p>Oracle 9i requires that you at least temporarily increase the maximum shared
memory segment size for installation.  To temporarily increase the maximum
shared memory segment size, follow these instructions (as root):</p>

<blockquote>
<b>echo "1073741824" > /proc/sys/kernel/shmmax</b>
</blockquote>

<span class="heading1">Set Up the Environment</span><br>

<p>Add the following line to /home/oracle/.bashrc near the bottom:</p>

<blockquote>
<b>export LD_ASSUME_KERNEL=2.4.1</b>
</blockquote>

<span class="heading1">Install Compatibility Packages</span><br>

<p>The Apache web server that comes with Oracle 9i requires Berkeley DB version
3.  Redhat 9 comes with Berkeley DB version 4.  However, there is a
compatibility RPM available:</p>

<blockquote><b>compat-db-3.3.11-4.i386.rpm</b></blockquote>

<p>You can download it from <a href="http://rpmfind.net">rpmfind</a> and install
it using <i>rpm -i</i> as root.</p>

<span class="heading1">Install Oracle</span><br>

<p>Now, log in as the oracle user.</p>

<p>Since Oracle 9.2.0 uses a graphical installer, you need to be running X
Windows or point the DISPLAY environment variable to an X Windows session
running somewhere.</p>

<p>I have had problems with the graphical installer on enlightenment and
fluxbox window managers in the past, though they may work for you.</p>

<p>If you have a CD, mount it and cd to the mount point.  If you have a cpio
distribution, extract all three files using:<p>

<blockquote><b>
cpio -idmv &lt; lnx_920_disk1.cpio<br>
cpio -idmv &lt; lnx_920_disk2.cpio<br>
cpio -idmv &lt; lnx_920_disk3.cpio<br>
</b></blockquote>

Change directories to the Disk1 directory.<br><br>

Type <b>./runInstaller</b><br><br>

On the <b>Welcome</b> screen click <b>Next</b><br><br>

An <b>Inventory Location</b> dialog will pop up.<br>
Accept the default base directory and click <b>OK</b><br><br>

On the <b>Unix Group Name</b> screen, enter <i>oinstall</i> for the
<b>UNIX Group Name</b> and click <b>Next</b><br><br>

A dialog will pop up and prompt you to run /tmp/orainstRoot.sh as root.<br>
Follow the instructions and click <b>Continue</b><br><br>

On the <b>File Locations</b> screen, accept the defaults and
click <b>Next</b><br><br>

On the <b>Available Products</b> screen, accept the default selection
<b>Oracle9i Database 9.2.0.1.0</b> and click <b>Next</b><br><br>

On the <b>Installation Types</b> screen, accept the default selection 
<b>Enterprise Edition</b> and click <b>Next</b><br><br>

On the <b>Database Configuration</b> screen, accept the default selection
<b>General Purpose</b> and click <b>Next</b><br><br>

On the <b>Database Identification</b> screen, enter <i>ora1</i> for both
<b>Global Database Name</b> and <b>SID</b> and click <b>Next</b><br><br>

On the <b>Database File Location</b> screen, accept the default
<b>Directory for Database Files</b> and click <b>Next</b><br><br>

On the <b>Database Character Set</b> screen, accept the default
selection <b>Use the default character set</b> and click <b>Next</b><br><br>

On the <b>Summary</b> screen, click <b>Install</b><br><br>

The <b>Install</b> screen will show the progress of the installation<br><br>


If a dialog pops up indicating:
<blockquote>
Error in invoking target install of makefile<br>
/u01/app/oracle/product/9.2.0/ctx/lib/ins_ctx.mk
</blockquote>

edit /u01/app/oracle/product/9.2.0/ctx/lib/ins_ctx.mk and change:<br>
<pre>
ctxhx: $(CTXHXOBJ)
        $(LINK) $(CTXHXOBJ) $(INSO_LINK)
</pre>
to:
<pre>
ctxhx: $(CTXHXOBJ)
        $(LINK) $(CTXHXOBJ) $(INSO_LINK) -ldl
</pre>
then click <b>Retry</b><br><br>

At the end of the installation, a dialog will pop up asking you to run
root.sh.  Just follow the directions on the dialog and click <b>Ok</b><br><br>

On the <b>Configuration Tools</b> screen, the Network Assistant and Database
Creation Assistant.<br><br>

A dialog will pop up indicating that a database is being created.
After a while, another dialog will pop up instructing you to provide passwords
for the SYS and SYSTEM users.  Enter new passwords for these users.  Note that
you cannont use the classic "manager" and "change_on_install" passwords.<br>
Click <b>OK</b><br><br>

When the Database Creation Assistant a few more tasks will run, when they are
finished, click Next.<br><br>

On the <b>End Of Installation</b> screen click <b>Exit</b><br><br>

A management interface should pop up shortly thereafter.  You can play around
with it if you like or simply exit.<br><br>

<p>In some cases, dbstart and dbshut don't work after installation.  To ensure
that they will work, you need to run the following command:</p>

<blockquote><b>
cp /u01/app/oracle/admin/ora1/pfile/initora1.ora.* /u01/app/oracle/product/9.2.0/dbs/initora1.ora
</b></blockquote>

</body>

</html>
